// db.js
const mongoose = require("mongoose");

const MONGO_URL = "mongodb://localhost:27017/testdb";

function connectDB() {
  return mongoose.connect(MONGO_URL, {
    useNewUrlParser: true,
    useUnifiedTopology: true,
  });
}

module.exports = connectDB;
